Skip to main content

Webview

webview can be one of 3 types:

  1. Step that redirects to an external link.
  2. Step that has a floating button that redirects to external links.
  3. Step that has an embedded link to be part of the onboarding.

[!IMPORTANT] The difference between the first two steps and the last one is that the first two must be at the last step of the onboarding but the last one must not be the last step.

Shared webview fields

KeyNotes
typewebview
stepIdUnique stepId
backgroundColorThe background color of the page
KeyNotes
redirectToThe link to redirect the user to after the onboarding (it’s usually a checkout or PWYW page)
// this is a step that will redirect to an external link
// it should be the last step of the onboarding
{
"type": "webview",
"stepId": "webviewPremium49",
"backgroundColor": "#8AD2C8",
"redirectTo": "https://time.thefabulous.co/payment/time/pwyw"
}

[!WARNING] If redirectTo link exists in that step, the user will be redirected to that link.

[!NOTE] redirectTo should have the links of the subdomains if it’s redirecting to one of the fabulous page. Here for example, we used time as a subdomain to redirect to the Clarify PWYW page.

These subdomains are:

  • start: start.thefabulous.co - Fabulous.
  • elixir: elixir.thefabulous.co
  • shape: shape.thefabulous.co
  • time: time.thefabulous.co - Clarify.
  • mind: mind.thefabulous.co
KeyNotes
urlThe link/page to embed
showFullScreenIf set to true, it’ll have the full width and height of the screen
showWebfloatingButtonDelayThe delay of showing the CTA button. (set it to 0 to show the button immediately).
It’s in milli seconds - e.g. 5000 will wait 5 seconds to show the CTA button.
webfloatingButtonLinkThe link to redirect the user to after the onboarding (it’s usually a checkout or PWYW page)
ctaText
ctaColor
ctaBackgroundColor
ctaHoverBackgroundColorThe background of the CTA on hover
bottomViewColorThe background color of the CTA wapper on small devices.
bottomViewBoxShadowAdds a box shadow for the bottom view on mobile devices. It can be used when the page’s background color has the same color as the bottomViewColor
paddingBottomUsed if we want to increase the padding of the CTA on the desktop. Example paddingBottom:70px
 {
"type": "webview",
"stepId": "webviewPremium49",
"url": "https://c.thefab.co/web-onboarding/fabulous/webview/science-of-fabulous-en.html",
"ctaText": "Continue",
"showWebfloatingButtonDelay": 5000,
"showFullScreen": true,
"webfloatingButtonLink": "https://www.thefabulous.co/payment/pwyw/pwyw-new-pop-up?upsellPath=/journey/upselling/personalized-coaching-plan-1&upsellPath2OnSkipPath1=/journey/coaching/personal-coaching-3&discount=25",
"ctaColor": "#FFF",
"ctaBackgroundColor": "#251C93",
"bottomViewColor": "#FFF",
"backgroundColor":"rgb(254, 124, 106)"
}

Screenshot 2024-02-16 at 2.25.05 PM.pngScreenshot 2024-02-16 at 2.25.46 PM.png

KeyNotes
urlThe link to embed
ctaText
ctaBackgroundColor
ctaColor
  {
"type": "webview",
"stepId": "the_resistence",
"url": "https://c.thefab.co/mind/onboarding/video/the_resistance.html",
"ctaText": "Continue",
"ctaBackgroundColor": "#FFFFFF",
"ctaColor": "#00555A"
},